import struct

infile = "E:\\Downloads\\SuperPI190\\pi_data.txt"
oufile = "E:\\Downloads\\SuperPI190\\pi_data_full.dat"


with open(infile, "r") as inf:
    lsinput = inf.readlines()

i=0
with open(oufile, "xb") as ouf:
    for s in lsinput:
        str = struct.pack('>q', int(s))[3::]
        ouf.write(str)
        i = i+1
print(i)



